package chixing.day18.work;

public class Employee extends Thread{
    private String employeeName;
    private String documentName;
    private Printer printer;
    public Employee(String employeeName, String documentName, Printer printer) {
        this.employeeName = employeeName;
        this.documentName = documentName;
        this.printer =printer;
    }
    public Employee() {
    }
    public void run() {
        printer.printDocument(documentName);
    }

    public String getDocumentName() {
        return documentName;
    }

    public void setDocumentName(String documentName) {
        this.documentName = documentName;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }
}
